package com.magicborrow.beans;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ghost on 16/5/18.
 */
public class WantBorringListBean implements Serializable {

    /**
     * code : 0
     * data : {"content":[{"address":"北京","box":1,"created":1462858974000,"deleted":0,"description":"男性礼服，参与晚会使用","id":2,"lat":1.11,"lon":1.11,"name":"求借礼服","number":0,"phone":"13800138000","times":2,"timesMode":0,"user":{"avatar":"/dist/images/ava/default.png","avatar80":"/dist/images/ava/default.png","birthday":"1990-01-01","borrowScale":0,"borrowTimes":0,"city":"","cityId":0,"created":"2016-05-10 11:33","gender":1,"id":2,"lat":0,"lendScale":0,"lendTimes":0,"lon":0,"mobile":"13800138000","nickname":"m13800138000","password":"123456","signature":"","status":0,"studentId":"","studentStatus":0,"updated":"2016-05-10 11:33"}},"..."],"first":true,"last":true,"number":0,"numberOfElements":2,"size":10,"sort":null,"totalElements":2,"totalPages":1}
     * message : 操作成功
     */

    private int code;
    /**
     * content : [{"address":"北京","box":1,"created":1462858974000,"deleted":0,"description":"男性礼服，参与晚会使用","id":2,"lat":1.11,"lon":1.11,"name":"求借礼服","number":0,"phone":"13800138000","times":2,"timesMode":0,"user":{"avatar":"/dist/images/ava/default.png","avatar80":"/dist/images/ava/default.png","birthday":"1990-01-01","borrowScale":0,"borrowTimes":0,"city":"","cityId":0,"created":"2016-05-10 11:33","gender":1,"id":2,"lat":0,"lendScale":0,"lendTimes":0,"lon":0,"mobile":"13800138000","nickname":"m13800138000","password":"123456","signature":"","status":0,"studentId":"","studentStatus":0,"updated":"2016-05-10 11:33"}},"..."]
     * first : true
     * last : true
     * number : 0
     * numberOfElements : 2
     * size : 10
     * sort : null
     * totalElements : 2
     * totalPages : 1
     */

    private DataEntity data;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataEntity getData() {
        return data;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataEntity {
        private boolean first;
        private boolean last;
        private int number;
        private int numberOfElements;
        private int size;
        private Object sort;
        private int totalElements;
        private int totalPages;
        /**
         * address : 北京
         * box : 1
         * created : 1462858974000
         * deleted : 0
         * description : 男性礼服，参与晚会使用
         * id : 2
         * lat : 1.11
         * lon : 1.11
         * name : 求借礼服
         * number : 0
         * phone : 13800138000
         * times : 2
         * timesMode : 0
         * user : {"avatar":"/dist/images/ava/default.png","avatar80":"/dist/images/ava/default.png","birthday":"1990-01-01","borrowScale":0,"borrowTimes":0,"city":"","cityId":0,"created":"2016-05-10 11:33","gender":1,"id":2,"lat":0,"lendScale":0,"lendTimes":0,"lon":0,"mobile":"13800138000","nickname":"m13800138000","password":"123456","signature":"","status":0,"studentId":"","studentStatus":0,"updated":"2016-05-10 11:33"}
         */

        private List<WantBorrowingBean> content;

        public boolean isFirst() {
            return first;
        }

        public void setFirst(boolean first) {
            this.first = first;
        }

        public boolean isLast() {
            return last;
        }

        public void setLast(boolean last) {
            this.last = last;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public int getNumberOfElements() {
            return numberOfElements;
        }

        public void setNumberOfElements(int numberOfElements) {
            this.numberOfElements = numberOfElements;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public Object getSort() {
            return sort;
        }

        public void setSort(Object sort) {
            this.sort = sort;
        }

        public int getTotalElements() {
            return totalElements;
        }

        public void setTotalElements(int totalElements) {
            this.totalElements = totalElements;
        }

        public int getTotalPages() {
            return totalPages;
        }

        public void setTotalPages(int totalPages) {
            this.totalPages = totalPages;
        }

        public List<WantBorrowingBean> getContent() {
            return content;
        }

        public void setContent(List<WantBorrowingBean> content) {
            this.content = content;
        }

        public static class  WantBorrowingBean implements Serializable{
            private String address;
            private int box;
            private String created;
            private int deleted;
            private String description;
            private int id;
            private double lat;
            private double lon;
            private String name;
            private int number;
            private String phone;
            private int times;
            private int timesMode;
            /**
             * avatar : /dist/images/ava/default.png
             * avatar80 : /dist/images/ava/default.png
             * birthday : 1990-01-01
             * borrowScale : 0
             * borrowTimes : 0
             * city :
             * cityId : 0
             * created : 2016-05-10 11:33
             * gender : 1
             * id : 2
             * lat : 0
             * lendScale : 0
             * lendTimes : 0
             * lon : 0
             * mobile : 13800138000
             * nickname : m13800138000
             * password : 123456
             * signature :
             * status : 0
             * studentId :
             * studentStatus : 0
             * updated : 2016-05-10 11:33
             */

            private UserEntity user;

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public int getBox() {
                return box;
            }

            public void setBox(int box) {
                this.box = box;
            }

            public String getCreated() {
                return created;
            }

            public void setCreated(String created) {
                this.created = created;
            }

            public int getDeleted() {
                return deleted;
            }

            public void setDeleted(int deleted) {
                this.deleted = deleted;
            }

            public String getDescription() {
                return description;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public double getLat() {
                return lat;
            }

            public void setLat(double lat) {
                this.lat = lat;
            }

            public double getLon() {
                return lon;
            }

            public void setLon(double lon) {
                this.lon = lon;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getNumber() {
                return number;
            }

            public void setNumber(int number) {
                this.number = number;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public int getTimes() {
                return times;
            }

            public void setTimes(int times) {
                this.times = times;
            }

            public int getTimesMode() {
                return timesMode;
            }

            public void setTimesMode(int timesMode) {
                this.timesMode = timesMode;
            }

            public UserEntity getUser() {
                return user;
            }

            public void setUser(UserEntity user) {
                this.user = user;
            }

            public static class UserEntity implements Serializable {
                private String avatar;
                private String avatar80;
                private String birthday;
                private float borrowScale;
                private int borrowTimes;
                private String city;
                private int cityId;
                private String created;
                private int gender;
                private int id;
                private int lat;
                private float lendScale;
                private int lendTimes;
                private int lon;
                private String mobile;
                private String nickname;
                private String password;
                private String signature;
                private int status;
                private String studentId;
                private int studentStatus;
                private String updated;

                public String getAvatar() {
                    return avatar;
                }

                public void setAvatar(String avatar) {
                    this.avatar = avatar;
                }

                public String getAvatar80() {
                    return avatar80;
                }

                public void setAvatar80(String avatar80) {
                    this.avatar80 = avatar80;
                }

                public String getBirthday() {
                    return birthday;
                }

                public void setBirthday(String birthday) {
                    this.birthday = birthday;
                }

                public float getBorrowScale() {
                    return borrowScale;
                }

                public void setBorrowScale(int borrowScale) {
                    this.borrowScale = borrowScale;
                }

                public int getBorrowTimes() {
                    return borrowTimes;
                }

                public void setBorrowTimes(int borrowTimes) {
                    this.borrowTimes = borrowTimes;
                }

                public String getCity() {
                    return city;
                }

                public void setCity(String city) {
                    this.city = city;
                }

                public int getCityId() {
                    return cityId;
                }

                public void setCityId(int cityId) {
                    this.cityId = cityId;
                }

                public String getCreated() {
                    return created;
                }

                public void setCreated(String created) {
                    this.created = created;
                }

                public int getGender() {
                    return gender;
                }

                public void setGender(int gender) {
                    this.gender = gender;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getLat() {
                    return lat;
                }

                public void setLat(int lat) {
                    this.lat = lat;
                }

                public float getLendScale() {
                    return lendScale;
                }

                public void setLendScale(int lendScale) {
                    this.lendScale = lendScale;
                }

                public int getLendTimes() {
                    return lendTimes;
                }

                public void setLendTimes(int lendTimes) {
                    this.lendTimes = lendTimes;
                }

                public int getLon() {
                    return lon;
                }

                public void setLon(int lon) {
                    this.lon = lon;
                }

                public String getMobile() {
                    return mobile;
                }

                public void setMobile(String mobile) {
                    this.mobile = mobile;
                }

                public String getNickname() {
                    return nickname;
                }

                public void setNickname(String nickname) {
                    this.nickname = nickname;
                }

                public String getPassword() {
                    return password;
                }

                public void setPassword(String password) {
                    this.password = password;
                }

                public String getSignature() {
                    return signature;
                }

                public void setSignature(String signature) {
                    this.signature = signature;
                }

                public int getStatus() {
                    return status;
                }

                public void setStatus(int status) {
                    this.status = status;
                }

                public String getStudentId() {
                    return studentId;
                }

                public void setStudentId(String studentId) {
                    this.studentId = studentId;
                }

                public int getStudentStatus() {
                    return studentStatus;
                }

                public void setStudentStatus(int studentStatus) {
                    this.studentStatus = studentStatus;
                }

                public String getUpdated() {
                    return updated;
                }

                public void setUpdated(String updated) {
                    this.updated = updated;
                }
            }
        }
    }
}
